{block name="style"}
{/block}
{block name="content"}
<form class="layui-form" action="{:url('/wms/recv/allot_recv')}" method="post" id="allot-recv">
    <input type="hidden" name="allot_id" value="{$allot.allot_id}">
    <div class="info-header">
    <div class="layui-row">
        <div class="layui-col-xs3">
            <label class="layui-form-label">调出仓库</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.wout.name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">调拨单号</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.allot_sn}" readonly class="layui-input copy-text">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">调拨日期</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.allot_date}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">出库日期</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.out_date}" readonly class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-xs3">
            <label class="layui-form-label">物流商</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.logistics_name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">追踪号</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.track_num}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">申请人</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.user.nickname}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">备注信息</label>
            <div class="layui-input-block">
                <input type="text" value="{$allot.remark}" readonly class="layui-input">
            </div>
        </div>
    </div>
</div>
<div class="info-body">
    <div class="layui-row" style="margin-top: 30px;">
        <h2>商品详情</h2>
        <table class="layui-table text-center">
            <thead>
            <tr>
                <th>图片</th>
                <th>SKU</th>
                <th>到货数量</th>
                <th>单价</th>
                <th>备注</th>
            </tr>
            </thead>
            <tbody>
            {foreach $allot->info as $info}
            <tr>
                <td width="100"><img src="{$info.image_url}"></td>
                <td width="150" class="copy-text">{$info.sku}</td>
                <td width="150">{$info.qty}</td>
                <td width="150">{$info.price|abs}</td>
                <td>{$info.remark}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
</div>
</form>
{/block}
{block name="script"}
{/block}